package org.balabala.video;

import org.balabala.os.exception.ClientInitRepeatException;
import org.balabala.os.management.MinIOClientManager;
import org.balabala.os.conf.ObjectStorageConf;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import java.io.File;
import java.io.FileNotFoundException;

@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
public class VideoApplication {

    public static void main(String[] args) throws ClientInitRepeatException, FileNotFoundException {
        ObjectStorageConf conf = new ObjectStorageConf(new File("D:\\MyProject\\balabala_platform\\video\\src\\main\\resources\\application.yaml"));
        MinIOClientManager.init(conf);
        SpringApplication.run(VideoApplication.class, args);
    }

}
